home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
090
/
fastlane.arc
/
TESTIME3.ASM
< prev
next >
Wrap
Assembly Source File
|
1984-11-10
|
1KB
|
63 lines
data segment public byte
hextable db '0123456789ABCDEF'
data ends
code segment public byte
assume cs: code
public calib
calib proc near
; place the calibration code here
ret
calib endp
public test
test proc near
assume ds: data
push bx
push cx
push dx
cld
mov cl, 4
mov dx, ax
mov bx, offset hextable
shr ax, cl
and ax, 0F0Fh ; mask for first and third nibble
and dx, 0F0Fh ; mask for second and fourth nibble
xchg ah, al ; upper nibble
xlat
stosb
mov al, dh ; second nibble
xlat
stosb
mov al, ah ; third nibble
xlat
stosb
mov al, dl ; lower nibble
xlat
stosb
pop dx
pop cx
pop bx
ret
test endp
code ends
end